import {request} from "@/api/request";

export function getEquipmentModel(page,pageSize) {
  return request({
    url:`/api/equipment_model/list/${page}/${pageSize}`,
    method:'GET',
  })
}
export function addEquimentModel(datas){
  return request({
    url:'/api/equipment_model/adjuration',
    method:'POST',
    data:JSON.stringify(datas)
  })
}

export function deleteEquimentModel(equipmentModelId){
  return request({
    url:`/api/equipment_model/delete/${equipmentModelId}`,
    method:'DELETE'
  })
}

export function editEquimentModel(equipmentModelId,datas){
  return request({
    url:`/api/equipment_model/update/${equipmentModelId}`,
    method:'PUT',
    data:JSON.stringify(datas)
  })
}
